]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: apply updates by default
authorMichael Catanzaro <mcatanzaro@gnome.org>
Wed, 25 Mar 2020 17:17:28 +0000 (12:17 -0500)
committerMichael Catanzaro <mcatanzaro@gnome.org>
Wed, 25 Mar 2020 17:20:16 +0000 (17:20 +0000)
Users can still uncheck the box to avoid applying updates, but by
default we will encourage the user to update.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2427

js/ui/endSessionDialog.js

index 42ae0d3f26e83f146973c4ef512cfa8561c341fa..52192c73b7c10c7aff895f6a9d676135a4cc446f 100644 (file)
@@ -653,7 +653,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
 
         _setCheckBoxLabel(this._checkBox, dialogContent.checkBoxText || '');
         this._checkBox.visible = dialogContent.checkBoxText && updatePrepared && updatesAllowed;
-        this._checkBox.checked = updatePrepared && updateTriggered;
+        this._checkBox.checked = this._checkBox.visible;
 
         // We show the warning either together with the checkbox, or when
         // updates have already been triggered, but the user doesn't have